<?php

require_once('WxPayDataBase.class.php');
class WxMoneyBusConfig extends WxPayDataBase{
	public function setNonceStr($value){
		$this->values['nonce_str'] = $value;
	}

	public function setSign(){
        
		$sign = $this->MakeSign();
		$this->values['sign'] = $sign;
		return $sign;
	}
  
  /**
   * 生成mch_billno 
   */
	// public function setMchBillno(){
	// 	//生成10位随机数测试时一般不会重复
	// 	$rand_num = rand(0,99999999);
 //        $bill_no = sprintf('%010d', $rand_num);

	// 	$this->values['mch_billno'] = WxPayConfig::MCHID.date("Ymd").$bill_no;
	// }
  //公众账号appid
	public function setMch_appid($value){
		$this->values['mch_appid'] = $value;
	}
   //商户号
	public function setMchid($value){
		$this->values['mchid'] = $value;
	}
    //设备号
	public function setDevice_info($value){
		$this->values['device_info'] = $value;
	}
	//随机字符串
	public function setNonce_str($value){
		$this->values['nonce_str'] = $value;
	}
   
	//商户订单号
	public function setPartner_trade_no($value){
		$this->values['partner_trade_no'] = $value;
	}

	public function setOpenid($value){
		$this->values['openid'] = $value;
	}
	//NO_CHECK：不校验真实姓名 FORCE_CHECK：强校验真实姓名（未实名认证的用户会校验失败，无法转账） 
    //OPTION_CHECK：针对已实名认证的用户才校验真实姓名（未实名认证用户不校验，可以转账成功）
	public function setCheck_name($value){
		$this->values['check_name'] = $value;
	}
	//收款用户真实姓名。 
    //如果check_name设置为FORCE_CHECK或OPTION_CHECK，则必填用户真实姓名
	public function setRe_user_name($value){
		$this->values['re_user_name'] = $value;
	}
   //金额
	public function setAmount($value){
		$this->values['amount'] = $value;
	}
	//描述
	public function setDesc($value){
		$this->values['desc'] = $value;
	}
   //IP
	public function setSpbill_create_ip($value){
		$this->values['spbill_create_ip'] = $value;
	}

}